home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
xcmd
/
xfcnmscl.sit
/
XFCN miscellany
/
card_2389.txt
< prev
next >
Wrap
Text File
|
1987-11-22
|
2KB
|
59 lines
-- card: 2389 from stack: in
-- bmap block id: 0
-- flags: 0000
-- background id: 2690
-- name: FileStuff
-- part 1 (field)
-- low flags: 00
-- high flags: 0000
-- rect: left=141 top=57 right=75 bottom=361
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 12
-- style flags: 8448
-- line height: 16
-- part name:
-- part 2 (field)
-- low flags: 01
-- high flags: 0000
-- rect: left=14 top=86 right=313 bottom=494
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 10
-- style flags: 0
-- line height: 13
-- part name:
-- part contents for card part 1
----- text -----
File Management Commands
-- part contents for card part 2
----- text -----
There are 4 XFCNs in this category:
ΓÇó RenameFile("OldName","NewName"). This renames a file, keeping it in the same folder (or
at the root of the volume). "OldName" is a full pathname, and "NewName" is a replacement
for the last component of that path. For instance:
put RenameFile("HD:Telecom:capture","session") into err
will produce a file called "HD:Telecom:session" if it succeeds. 0 is returned on success, a
negative number for an Operating System error, and 1 for a parameter error. See the
OsErr handler in the stack script for a suggestion on how to handle this.
• MoveFile("OldName","New folder"). This moves files between folders on the same volume
(it can't be used to copy files between volumes). "OldName" is a full pathname, and "New
folder" specifies the destination folder. For instance:
put MoveFile("HD:Telecom:session","HD:Stuff:") into err
produces a file called "HD:Stuff:session". Note the final colon in the second argument. Values
returned have the same meaning as in the RenameFile XFCN.